import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import seven.config.SpringConfiguration_2;
import seven.servlet.UserServlet;

public class main3 {

    @Test
    public void run(){
        //这个地方尝试配置文件的处理流程
        ApplicationContext applicationContext=new AnnotationConfigApplicationContext(SpringConfiguration_2.class);
        UserServlet userServlet1=applicationContext.getBean(UserServlet.class);
        System.out.println("1=============>"+userServlet1.userService2);

    }
}
